package cn.xinfei.xdecision.common.service.analyse.impl;

import cn.xinfei.xdecision.common.dao.analyse.AnalyseDataMapper;
import cn.xinfei.xdecision.common.model.analyse.AnalyseRequestParam;
import cn.xinfei.xdecision.common.model.analyse.model.AnalyseDataModel;
import cn.xinfei.xdecision.common.service.analyse.AnalyseDataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 */
@Slf4j
@Service
public class AnalyseDataServiceImpl extends ServiceImpl<AnalyseDataMapper, AnalyseDataModel> implements AnalyseDataService {

    @Autowired
    private AnalyseDataMapper analyseDataMapper;


    @Override
    public List<AnalyseDataModel> getAnalyseData(AnalyseRequestParam param) {
//        LambdaQueryWrapper<AnalyseDecisionResult> wrapper = new LambdaQueryWrapper<>();
//        wrapper.eq(AnalyseDecisionResult::getEngineId,param.getEngineId());
//        wrapper.eq(AnalyseDecisionResult::getVersionId,param.getVersionId());
//        wrapper.eq(AnalyseDecisionResult::getOrganId,param.getUser().getOrganId());
//        wrapper.ge(AnalyseDecisionResult::getCallDate,param.getStart());
//        wrapper.lt(AnalyseDecisionResult::getCallDate,param.getEnd());
//        wrapper.orderByAsc(AnalyseDecisionResult::getCallDate);
//        List<AnalyseInfoModel> analyseDecisionResults = mapper.selectList(wrapper);

        List<AnalyseDataModel> result = new ArrayList<>();
        return result;
    }


}
